package tools;

import javax.imageio.ImageIO;
import java.awt.*;
import java.io.IOException;
import java.io.InputStream;

public class ImageUtil {

    public static boolean isImage(InputStream inputStream) throws IOException {
        Image image = ImageIO.read(inputStream);
        return image != null;
    }
}
